package com.gg.registration.model.hosp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gg.registration.model.base.BaseEntity;
import lombok.Data;

import java.util.Objects;

/**
 * <p>
 * HospitalSet
 * </p>
 *
 * @author qy
 */
@Data
@TableName("hospital_set")
public class HospitalSet extends BaseEntity {
	
	private static final long serialVersionUID = 1L;


	@TableField("hosname")
	private String hosname;

	@TableField("hoscode")
	private String hoscode;

	@TableField("api_url")
	private String apiUrl;

	@TableField("sign_key")
	private String signKey;

	@TableField("contacts_name")
	private String contactsName;

	@TableField("contacts_phone")
	private String contactsPhone;

	@TableField("status")
	private Integer status;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getHosname() {
		return hosname;
	}

	public void setHosname(String hosname) {
		this.hosname = hosname;
	}

	public String getHoscode() {
		return hoscode;
	}

	public void setHoscode(String hoscode) {
		this.hoscode = hoscode;
	}

	public String getApiUrl() {
		return apiUrl;
	}

	public void setApiUrl(String apiUrl) {
		this.apiUrl = apiUrl;
	}

	public String getSignKey() {
		return signKey;
	}

	public void setSignKey(String signKey) {
		this.signKey = signKey;
	}

	public String getContactsName() {
		return contactsName;
	}

	public void setContactsName(String contactsName) {
		this.contactsName = contactsName;
	}

	public String getContactsPhone() {
		return contactsPhone;
	}

	public void setContactsPhone(String contactsPhone) {
		this.contactsPhone = contactsPhone;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}


	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		HospitalSet that = (HospitalSet) o;
		return  Objects.equals(hosname, that.hosname) &&
				Objects.equals(hoscode, that.hoscode) &&
				Objects.equals(apiUrl, that.apiUrl) &&
				Objects.equals(signKey, that.signKey) &&
				Objects.equals(contactsName, that.contactsName) &&
				Objects.equals(contactsPhone, that.contactsPhone) &&
				Objects.equals(status, that.status);
	}

	@Override
	public int hashCode() {
		return Objects.hash( hosname, hoscode, apiUrl, signKey, contactsName, contactsPhone, status);
	}
}

